<!DOCTYPE html>
<html>
    <head>
        <title>{$meta_title|default="XWAM"}-后台管理系统</title>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <link href="__THEME__favicon.ico" rel="shortcut icon">
        <!--css-->
        <link href="__CSS__cssreset-min.css" rel="stylesheet" type="text/css">
        <link href="__CSS__unsemantic/assets/stylesheets/unsemantic-grid-responsive.min.css" rel="stylesheet" type="text/css">
        <link href="__SCRIPT__jquery-ui-1.11.4/themes/start/jquery-ui.css" rel="stylesheet" type="text/css">
        <link href="__CSS__font-awesome-4.6.1/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
        <link href="__SCRIPT__ui-layout-1.4.0/layout-default-min.css" rel="stylesheet" type="text/css"/>
        <link href="__SCRIPT__superfish-1.7.6/css/superfish.min.css" rel="stylesheet" type="text/css"/>
        <link href="__THEME__Css/index.css" rel="stylesheet" type="text/css"/>
        <!--/css-->
    </head>
    <body>
    <!--js-->
    <script src="__SCRIPT__jquery-1.12.3.min.js" type="text/javascript"></script>
    <script src="__SCRIPT__jquery-ui-1.11.4/jquery-ui.min.js" type="text/javascript"></script>
    <script src="__SCRIPT__jquery-ui-1.11.4/i18n/datepicker-zh-CN.js" type="text/javascript"></script>
    <script src="__SCRIPT__ui-layout-1.4.0/jquery.layout-min.js" type="text/javascript"></script>
    <script src="__SCRIPT__superfish-1.7.6/js/superfish.min.js" type="text/javascript"></script>
    <script src="__SCRIPT__Xslider/js/Xslider.js" type="text/javascript"></script>
    <script src="__SCRIPT__js-utility/js.cookie-2.1.1.min.js" type="text/javascript"></script>
    <script src="__THEME__Script/IFrameDialog-1.0.js?v=1.1" type="text/javascript"></script>
    <!--/js-->
    <div class="ui-layout-north">
        <header>
            <div class="header-top">
                <!--logo-->
                <div class="logo grid-40 mobile-grid-50 tablet-grid-50"><h3><a href="{:U('Index/home')}">{$site_conf.site_title}</a></h3></div>
                <!--logo-->
                <div class="grid-40 mobile-grid-20 tablet-grid-30">&nbsp;</div>
                <div class="grid-20 mobile-grid-30 tablet-grid-20" style="text-align: right;">
                    <if condition="'Y' neq $site_conf['ui_aside_status']"><!--侧边栏开关/-->
                        <div class="header-user">
                            <a href="{$site_conf['site_sub_path']}{$login_data.face_url|default='/Uploads/Face/Default/face.png'}" target="_blank"><img src="{$site_conf['site_sub_path']}{$login_data.face_url|default='/Uploads/Face/Default/face.png'}" title="{$login_data.name|default='头像'}" alt="头像" /></a>
                            <span title="编辑 {$login_data.name} 个人资料">{$login_data.user_name}</span>
                            <a href="{:U('User/profile_edit')}" class="xsui-lnk-edit-dialog-g" title="编辑 {$login_data.name} 个人资料"><i class="fa fa-pencil-square"></i></a>
                            <a href="{:U('Login/logout')}" onclick="return confirm('您确定要注销登录吗?');" title="帐号登出"><i class="fa fa-sign-out"></i></a>
                        </div>
                    </if>
                    <!--message-->
                    <div class="header-message">
                        <ul>
                            <li><a href="{:U('PM/my_inbox')}" class="lnk-view-dialog-g" title="短消息"><i class="fa fa-envelope-o fw" title="短消息"></i>&nbsp;<strong id="pmcount" class="xsui-badge" style="font-size:8px; font-family: '宋体'" data-url="{:U('PM/read_count')}">100</strong></a></li>
                            <li class="xsui-icon-only"><a class="xsui-lnk-edit-dialog-g" href="{:U('User/setting')}" target="_blank" title="设置"><i class="fa fa-gears"></i></a></li>
                            <li class="xsui-icon-only xsui-lnk-history"><a href="/" target="_blank" title="历史记录"><i class="fa fa-history"></i></a>
                                <ul id="history_menus" data-url="{:U('Menu/get_history_menu')}"></ul>
                            </li>
                            <li class="xsui-icon-only"><a href="/" target="_blank" title="前往网站"><i class="fa fa-home"></i></a></li>
                            <li class="xsui-icon-only"><a href="{:U('Help/index')}" target="_blank" title="帮助"><i class="fa fa-question-circle"></i></a></li>
                        </ul>
                    </div>
                    <!--/message-->
                </div>
            </div>
            <div class="header-bar grid-100">
                <if condition="false">
                    <!--menu-->
                    <ul class="sf-menu" id="main_nav">
                        <li><a href="{:U('Index/home')}" data-id="0">桌面</a></li>
                        <foreach name="menuset" item="vo">
                            <li><a href="{:U('Index/index')}" class="icon-{$vo.code}">{$vo.title}</a>
                                <ul>
                                    <foreach name="vo['children']" item="vo2">
                                        <li class="xsui-menu-header">{$vo2.title}</li>
                                        <foreach name="vo2['children']" item="vo3">
                                            <li><a class="menu-link" href="{:U($vo3['url'])}" data-id="{$vo3.id}"><i class="fa fa-caret-right fa-fw"></i>{$vo3.title}</a></li>
                                        </foreach>
                                    </foreach>
                                </ul>
                            </li>
                        </foreach>
                    </ul>
                    <!--/menu-->
                </if>
                <!--seat-cti-controller-->
                <if condition="true">
                    <div id="agent_cti_manager_toolbar" class="header-exten-workbench-left">
                        <span class="content">
                            {$login_data['user_name']}
                            <a href="/xcall/index.php/XCall/CtiManager/seat_state/exten/{$login_data['user_name']}" class="extension-status" title="刷新状态信息" style="margin:0;"><i class="fa fa-refresh fa-fw"></i></a>
                            <strong id="extension-status-label" style="color:#FC0;"></strong>
                            <a href="/xcall/index.php/XCall/CtiManager/seat_sign/opt/LOGIN/exten/{$login_data['user_name']}" class="extension-signin" title="签入队列"><i class="fa fa-sign-in fa-fw"></i>签入</a>
                            <a href="/xcall/index.php/XCall/CtiManager/seat_sign/opt/LOGINOUT/exten/{$login_data['user_name']}" class="extension-signout" title="签出队列"><i class="fa fa-sign-out fa-fw"></i>签出</a>
                            <a href="/xcall/index.php/XCall/CtiManager/seat_queuePause/opt/BUSY/exten/{$login_data['user_name']}" class="extension-busy" title="示忙"><i class="fa fa-hourglass-1 fa-fw"></i>示忙</a>
                            <a href="/xcall/index.php/XCall/CtiManager/seat_queuePause/opt/FREE/exten/{$login_data['user_name']}" class="extension-idle" title="示闲"><i class="fa fa-hourglass-o fa-fw"></i>示闲</a>
                            <input type="text" placeholder="呼叫号码" size="16" />
                            <a href="/xcall/index.php/XCall/CtiManager/seat_dialout_save/phone/varphone/exten/{$login_data['user_name']}" class="extension-dialout" title="发起呼叫"><i class="fa fa-phone-square fa-fw"></i>拨号</a>  
                            <!--              
                            <a href="{:U('XCall/CtiManager/seat_callpark','opt=Y&exten='.$login_data['user_name'])}" class="extension-callpark-paush">保持</a>
                            <a href="{:U('XCall/CtiManager/seat_callpark','opt=N&exten='.$login_data['user_name'])}" class="extension-callpark-resume">恢复</a>
                            <a href="{:U('XCall/CtiManager/seat_meeting_edit&exten='.$login_data['user_name'])}" class="extension-meeting">会议</a>
                            <a href="{:U('CtiManager/seat_trans_edit&exten='.$login_data['user_name'])}" class="extension-trans">转接</a>
                            -->
                            <a href="/xcall/index.php/XCall/CtiManager/seat_handup/exten/{$login_data['user_name']}" class="extension-handup" title="挂断通话"><i class="fa fa-close fa-fw"></i>挂断</a>
                            <!--
                            <a onclick="threeWayCalling();" id="threeCalling" class="icon-people">三方通话</a>
                            <a onclick="chatContent2();" id="servicescore" class="icon-message">聊天</a>
                            <a onclick="aftereventStop();" id="aftercall" class="icon-aftercall"title="结束话后">话后</a>
                            <a onclick="serviceScore();" id="servicescore" class="icon-service">评分</a>
                            <a href="#" id="preference2" class="icon-settings">test</a>
                            <a href="#" id="callconsole" class="icon-phone_ctrl">话务台</a>
                            -->
                        </span>
                        <a href="#" class="switch" title="[展开]或[收起]坐席控制台"><i class="fa fa-toggle-on fa-fw"></i></a>
                    </div>
                </if>
                <!--seat-cti-controller-->
            </div>
        </header>                
    </div>
    <!--/顶部区域-->
    <!--侧边区域-->
    <if condition="'Y' eq $site_conf['ui_aside_status']"><!--侧边栏开关/-->
        <div class="ui-layout-west">
            <!--userzone-->
            <div class="aside-user-zone">
                <fieldset>
                    <legend class="xsui-hide"><img src="{$site_conf['site_sub_path']}{$login_data.face_url|default='/Uploads/Face/Default/face.png'}" title="{$login_data.name|default='头像'}" alt="头像" /><a href="{:U('User/profile_edit')}" class="xsui-lnk-edit-dialog-g" title="编辑{$login_data.name}个人资料">{$login_data.user_name}</a><a href="{:U('Login/logout')}" onclick="return confirm('您确定要注销登录吗?');">[注销]</a></legend>
                    <a href="#" class="switch"><i class="fa fa-toggle-on"></i></a>
                    <div class="content">
                        <div class="face grid-40 mobile-grid-50"><img src="{$site_conf['site_sub_path']}{$login_data.face_url|default='/Uploads/Face/Default/face.png'}" title="{$login_data.name|default='头像'}" /></div>
                        <div class="info grid-60 mobile-grid-50">
                            <dl>
                                <dt title="{$login_data.name}">{$login_data.user_name}</dt>
                                <dd><a href="{:U('User/profile_edit')}" class="xsui-lnk-edit-dialog-g" title="编辑个人资料">[设置]</a><a href="{:U('Login/logout')}" onclick="return confirm('您确定要注销登录吗?');">[注销]</a></dd>
                                <dd class="xsui-text-ellipsis" style="width:90px;" title="{$login_data.role_names}">{$login_data.role_names}</dd>
                            </dl>                    
                        </div>
                        <dl class="stat grid-100 mobile-grid-100">
                            <dt>部门：</dt>
                            <dd class="xsui-text-ellipsis" style="width:130px;" title="{$login_data.department_names}">{$login_data.department_names}</dd>
                            <dt>上次登录：</dt>
                            <dd title="{$login_data.login_time} 登陆于 {$login_data.login_ip}, 登录次数 {$login_data.login_count}">{$login_data.login_time|sofn_tran_time}</dd>
                        </dl>
                    </div>
                </fieldset>
            </div>
            <!--/userzone-->
            <if condition="false">
                <!--2016-3-16 侧边全菜单后,破坏布局，暂时用底部替代-->
                <!--clockzone-->
                <div class="aside-clock-zone">                
                    <div class="clock">                        
                        <span title="">0000-00-00 00:00:00</span>
                        <i class="icon fa fa-sun-o" title=""></i>
                        <a href="#" class="switch"><i class="fa fa-toggle-off"></i></a>
                    </div>
                    <div class="aside-calendar xsui-hide"></div>
                </div>
                <!--/timezone-->
            </if>
            <!--asidemenu-->
            <div class="aside-menu" data-url="{:U('Menu/get_aside_menu','id=varid')}">
                <foreach name="menuset" item="vo">
                    <fieldset>
                        <legend class="switch">{$vo.title}<a href="javascript:"><i class="fa fa-toggle-on"></i></a></legend>
                        <ul>
                            <foreach name="vo['children']" item="vo2">
                                <!--<li class="xsui-menu-header">{$vo2.title}</li>-->
                                <foreach name="vo2['children']" item="vo3">
                                    <li><a class="menu-link" href="{:U($vo3['url'])}" data-id="{$vo3.id}"><i class="fa fa-caret-right fa-fw"></i>{$vo3.title}</a></li>
                                </foreach>
                            </foreach>
                        </ul>
                    </fieldset>
                </foreach>
            </div>
            <!--/asidemenu-->
        </div>
    </if>
    <!--/侧边区域-->
    <!--主体区域-->
    <div class="ui-layout-center">
        <main></main>
    </div>
    <!--/主体区域-->
    <!--底部区域-->
    <div class="ui-layout-south">
        <!--notices-slider-->
        <div class="notices-slider grid-50 mobile-grid-50">
            <div class="slider-content">
                <label><i class="fa fa-bullhorn"></i></label>
                <ul id="slider-content-list" data-url="{:U('Notices/get_notices_list_json','sign=varsign')}" data-href="{:U('Notices/document_view','id=varkey')}">
                    <li><a href="#" title="sdfa">日本通过防卫大纲 明确提出加强钓鱼岛等防卫日本通过防卫大纲 明确提出加强钓鱼岛等防卫日本通过防卫大纲 明确提出加强钓鱼岛等防卫日本通过防卫大纲 明确提出加强钓鱼岛等防卫</a></li>
                    <li><a href="#">温家宝：彻底解决中印边界问题需耐心和时间</a></li>
                    <li><a href="#">菲律宾称不会对人质事件中香港遇难者作出赔偿</a></li>
                    <li>11月份全国楼市再度量价齐涨 可能引发第三轮调控</li>
                    <li>山西巡警队长成黑老大敛财数亿 27套房被查封</li>
                </ul>
                <a class="aleft" href="#up"><i class="fa fa-caret-left"></i></a>
                <a class="aright" href="#down"><i class="fa fa-caret-right"></i></a>
            </div>
        </div>
        <!--/notices-slider-->
        <footer class="grid-50 mobile-grid-50">
            <span class="copyright">
                <i class="fa fa-copyright fw"></i>{:date('Y')}&nbsp;
                <a href="/" target="_blank">{$site_conf['site_app_name']}</a>&nbsp;
                <a href="#">{$site_conf['site_app_version']}</a>
            </span>
            <if condition="true"><!--侧边栏开关/-->
                <!--clockzone-->
                <span class="clock-zone">
                    <span class="clock">                        
                        <span title="">0000-00-00 00:00:00</span>
                        <i class="icon fa fa-sun-o" title=""></i>
                    </span>
                </span>
                <!--/clockzone-->
            </if>
        </footer>
    </div>
    <!--/底部区域-->
    <!--来电弹屏-->
    <a id="call-reminder" class="xsui-lnk-edit-dialog-g" title="来电提醒" href="#" target="_blank" onclick="$(this).hide();" data-url="{:U('Customer/customer_popup','tel=vartel')}" data-screenpopup-url="{:U('ApiCallRecord/screen_popup','jsonp=varjsonp&rnd=varrnd&exten='.$login_data['user_name'])}" data-screenpopup-mode="{$SCREENPOPUP_MODE}" style="position: absolute; left:40%; top:0px; background-color: #F60; padding: 5px 80px 8px 80px; color:#FFF; display:none; z-index:999">您有新来电</a>
    <!--/来电弹屏-->
    <!--页面变量区域-->
    <div id="window-config-text" style="display:none">"KINDEDITOR_UPLOADER":"{:U('UploadHandler/kindeditor_upload')}"</div>
    <!--/页面变量区域-->
    <!--底部脚本区域-->
    <script src="__THEME__Script/index.js" type="text/javascript"></script>
    <script src="__THEME__Script/ScreenPopup-1.0.js" type="text/javascript"></script>
    <script type="text/javascript">
        window.config = $.parseJSON('{' + $('#window-config-text').text() + '}');
        // 来电弹屏初始化
        ScreenPopup.init({data_url: $('#call-reminder').data('screenpopupUrl')});
        // 弹窗对话框插件
        var ifrmDialog = IFrameDialog.newInstance();
    </script>
    <!--/底部脚本区域-->
</body>
</html>